package com.open.capacity.exam.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.common.model.ExamPaperQuestion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaperQuestionDao {
    /**
     * 批量添加考题到考卷中
     * @param paquid
     * @param quesid
     * @return
     */
    int insert(@Param("paquid") Integer paquid,@Param("quesid") Integer quesid,@Param("score") Integer score);

    /**
     * 查询对应考卷的所有考题
     * @param expaid
     * @return
     */
    List<ExamPaperQuestion> select(@Param("expaid")Integer expaid,@Param("quesid")Integer quesid);

    /**
     * 删除
     * @param expaid
     * @return
     */
    Integer delete(Integer expaid);
}